package cn.fuxi2022.model.empty.accounts;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 社团活动签到登记表
 * </p>
 *
 * @author Fuxi
 * @since 2022-10-19 16:55:19
 */
@Getter
@Setter
@TableName("group_register")
public class GroupRegister implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 签到的学生ID
     */
    @TableField("student_id")
    private String studentId;

    /**
     * 签到的活动ID
     */
    @JsonIgnore
    @TableField("activity_id")
    private String activityId;

    /**
     * 签到的学生姓名
     */
    @TableField("student_name")
    private String studentName;

    /**
     * 是否删除
     */
    @JsonIgnore
    @TableLogic(value = "0", delval = "1")
    @TableField("is_deleted")
    private Integer isDeleted;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy年MM月dd日 HH:mm:ss", timezone = "GMT+8")
    private Date gmtCreate;

    /**
     * 更新时间
     */
    @JsonIgnore
    @TableField(value = "gmt_modified", fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;


}
